Optimal. Leaf size=66 \[ \frac{x^2}{2 a}-\frac{b \tan ^{-1}\left (\frac{\sqrt{a-b} \tanh \left (\frac{1}{2} \left (c+d x^2\right )\right )}{\sqrt{a+b}}\right )}{a d \sqrt{a-b} \sqrt{a+b}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.103473, antiderivative size = 66, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {5436, 3783, 2659, 208} \[ \frac{x^2}{2 a}-\frac{b \tan ^{-1}\left (\frac{\sqrt{a-b} \tanh \left (\frac{1}{2} \left (c+d x^2\right )\right )}{\sqrt{a+b}}\right )}{a d \sqrt{a-b} \sqrt{a+b}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5436
Rule 3783
Rule 2659
Rule 208
Rubi steps
\begin{align*} \int \frac{x}{a+b \text{sech}\left (c+d x^2\right )} \, dx &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{a+b \text{sech}(c+d x)} \, dx,x,x^2\right )\\ &=\frac{x^2}{2 a}-\frac{\operatorname{Subst}\left (\int \frac{1}{1+\frac{a \cosh (c+d x)}{b}} \, dx,x,x^2\right )}{2 a}\\ &=\frac{x^2}{2 a}+\frac{i \operatorname{Subst}\left (\int \frac{1}{1+\frac{a}{b}+\left (1-\frac{a}{b}\right ) x^2} \, dx,x,i \tanh \left (\frac{1}{2} \left (c+d x^2\right )\right )\right )}{a d}\\ &=\frac{x^2}{2 a}-\frac{b \tan ^{-1}\left (\frac{\sqrt{a-b} \tanh \left (\frac{1}{2} \left (c+d x^2\right )\right )}{\sqrt{a+b}}\right )}{a \sqrt{a-b} \sqrt{a+b} d}\\ \end{align*}
Mathematica [A] time = 0.118544, size = 67, normalized size = 1.02 \[ \frac{\frac{2 b \tan ^{-1}\left (\frac{(b-a) \tanh \left (\frac{1}{2} \left (c+d x^2\right )\right )}{\sqrt{a^2-b^2}}\right )}{d \sqrt{a^2-b^2}}+\frac{c}{d}+x^2}{2 a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.043, size = 95, normalized size = 1.4 \begin{align*} -{\frac{1}{2\,da}\ln \left ( \tanh \left ({\frac{d{x}^{2}}{2}}+{\frac{c}{2}} \right ) -1 \right ) }-{\frac{b}{da}\arctan \left ({(a-b)\tanh \left ({\frac{d{x}^{2}}{2}}+{\frac{c}{2}} \right ){\frac{1}{\sqrt{ \left ( a+b \right ) \left ( a-b \right ) }}}} \right ){\frac{1}{\sqrt{ \left ( a+b \right ) \left ( a-b \right ) }}}}+{\frac{1}{2\,da}\ln \left ( \tanh \left ({\frac{d{x}^{2}}{2}}+{\frac{c}{2}} \right ) +1 \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.19045, size = 702, normalized size = 10.64 \begin{align*} \left [\frac{{\left (a^{2} - b^{2}\right )} d x^{2} - \sqrt{-a^{2} + b^{2}} b \log \left (\frac{a^{2} \cosh \left (d x^{2} + c\right )^{2} + a^{2} \sinh \left (d x^{2} + c\right )^{2} + 2 \, a b \cosh \left (d x^{2} + c\right ) - a^{2} + 2 \, b^{2} + 2 \,{\left (a^{2} \cosh \left (d x^{2} + c\right ) + a b\right )} \sinh \left (d x^{2} + c\right ) + 2 \, \sqrt{-a^{2} + b^{2}}{\left (a \cosh \left (d x^{2} + c\right ) + a \sinh \left (d x^{2} + c\right ) + b\right )}}{a \cosh \left (d x^{2} + c\right )^{2} + a \sinh \left (d x^{2} + c\right )^{2} + 2 \, b \cosh \left (d x^{2} + c\right ) + 2 \,{\left (a \cosh \left (d x^{2} + c\right ) + b\right )} \sinh \left (d x^{2} + c\right ) + a}\right )}{2 \,{\left (a^{3} - a b^{2}\right )} d}, \frac{{\left (a^{2} - b^{2}\right )} d x^{2} + 2 \, \sqrt{a^{2} - b^{2}} b \arctan \left (-\frac{a \cosh \left (d x^{2} + c\right ) + a \sinh \left (d x^{2} + c\right ) + b}{\sqrt{a^{2} - b^{2}}}\right )}{2 \,{\left (a^{3} - a b^{2}\right )} d}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x}{a + b \operatorname{sech}{\left (c + d x^{2} \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.1614, size = 82, normalized size = 1.24 \begin{align*} -\frac{b \arctan \left (\frac{a e^{\left (d x^{2} + c\right )} + b}{\sqrt{a^{2} - b^{2}}}\right )}{\sqrt{a^{2} - b^{2}} a d} + \frac{d x^{2} + c}{2 \, a d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]